package cm.tl.pms.entity;

import cm.tl.pms.common.annotation.Excel;
import cm.tl.pms.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 需求征集对象 biz_demand_plan
 *
 * @author ruoyi
 * @date 2025-04-09
 */
@TableName("biz_demand_plan")
public class DemandPlan extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 需求名称
     */
    @Excel(name = "需求名称")
    private String name;

    /**
     * 需求类型
     */
    @Excel(name = "需求类型")
    private Long demandType;

    /**
     * 征集对象
     */
    @Excel(name = "征集对象")
    private Long planObject;

    /**
     * 通知类型
     */
    @Excel(name = "通知类型")
    private Long noticeType;

    /**
     * 单位id
     */
    @Excel(name = "单位id")
    private Long deptId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDemandType(Long demandType) {
        this.demandType = demandType;
    }

    public Long getDemandType() {
        return demandType;
    }

    public void setPlanObject(Long planObject) {
        this.planObject = planObject;
    }

    public Long getPlanObject() {
        return planObject;
    }

    public void setNoticeType(Long noticeType) {
        this.noticeType = noticeType;
    }

    public Long getNoticeType() {
        return noticeType;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("demandType", getDemandType())
                .append("planObject", getPlanObject())
                .append("noticeType", getNoticeType())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("deptId", getDeptId())
                .toString();
    }
}
